#include <windows.h>
#include<io.h>
#include<stdio.h>
#include<fcntl.h>

#define SONG 1
#define FANG 2
#define KAI  3
#define HEI  4
#define TE   5
#define HZK_ABC  0
#define HZK_ABCF -1
#define HZK_PATH ""
#define HZ_PATH ""

static int hztype=16,hz16=HZK_ABC,hz24=SONG,hzx=0,hzy=0,hzz=0,hzcolorR=255,hzcolorG=255,hzcolorB=255,hzm=1,hzn=1;

int puthz16(HWND hwnd,int hz,int x,int y,int z,int colorR,int colorG,int colorB,int m,int n, char *p);
int puthz24(int hzk,int x,int y,int z,int color,int m,int n, char *p);
int openhzk(int c);
int closehzk(int handle);
int getbit(unsigned char c,int n);

int hzprintf(HWND hwnd,char *p);
int hz_lib(int ziti);
int hz_xy(int x, int y);
int hzxy(int x,int y);
int hz_z(int z);
int hz_mn(int m,int n);
int hz_color(int colorR,int colorG,int colorB);
